package com.zzx.tree;

public class TreeNode {
    /**
     * id
     */
    private Integer id;
    /**
     * 数据域
     */
    private Object data;

    /**
     * 父节点id
     */
    private Integer parentId;

    public TreeNode(Integer id, Object data, Integer parentId) {
        this.id = id;
        this.data = data;
        this.parentId = parentId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
}
